import CryptoJS from 'crypto-js'

//加密
export function aesEncrypt(password) {
  const key = "pigxpigxpigxpigx"; //加密密钥
  const iv = CryptoJS.enc.Latin1.parse(key); //秘钥偏移量
  const encrypted = CryptoJS.AES.encrypt(password, iv, {
    iv: iv,
    mode: CryptoJS.mode.CFB,
    padding: CryptoJS.pad.NoPadding
  });
  return encrypted.toString();
}
